﻿// -------------------------------------------------------------------------
//    @FileName         :    NFCeUtil.cpp
//    @Author           :    Gao.Yi
//    @Date             :    2025-10-09
//    @Email			:    445267987@qq.com
//    @Module           :    NFCeUtil
//    @Desc             :
//
// -------------------------------------------------------------------------

#include "NFCeUtil.h"

#include "NFCePart.h"
#include "NFPlayer.h"

NFCePart* NFCeUtil::GetCePart(NFPlayer* pPlayer)
{
    return pPlayer->GetPart<NFCePart>();
}

RoleCEData* NFCeUtil::GetCeData(NFPlayer* pPlayer)
{
    NFCePart* pCePart = GetCePart(pPlayer);
    CHECK_NULL_RE_NULL(0, pCePart, "GetCePart failed");

    return pCePart->GetData();
}
